package org.itstack.demo.design.user;

import org.itstack.demo.design.visitor.Visitor;

/**
 * @Author: fanYuLe
 * @CreateTime: 2023-12-29  13:33
 * @Description: 基础用户信息
 */
public abstract class User {

    public String name; // 姓名
    public String identity; // 身份：重点班、普通班 | 特技教师、实习教师
    public String clazz;// 班级

    public User(String name, String identity, String clazz) {
        this.name = name;
        this.identity = identity;
        this.clazz = clazz;
    }
    //核心访问方法
    public abstract void accept(Visitor visitor);
}
